package tasks

import (
	"cashew.com/cashew_common/configs"
	"cashew.com/cashew_match/services"
	"github.com/beego/beego/v2/core/logs"
)

func TickerTaskStart() {
	// 1. 启动定时匹配主播任务
	quickCallOpen := configs.TickerTaskQuickCallOpen
	if quickCallOpen > 0 {
		services.StartQuickCallTask()
	} else {
		logs.Info("定时匹配主播任务未开启, 如需开启, 请在配置文件中配置 tickerTask.quickCallOpen = 1")
	}

	// 2. 其他定时任务（依次添加即可）
}
